//
// Created by Administrator on 2021/5/22.
// @file OpencvDemoBase.h
// @author jmdvirus
// @date $YEAR-$MONTH-22 12:21:57
//

#ifndef C_OPENCVDEMOBASE_H
#define C_OPENCVDEMOBASE_H

#include "opencv2/opencv.hpp"

class OpencvDemoBase
{
public:
    OpencvDemoBase();
    virtual ~OpencvDemoBase();

    virtual int Run(int argc, char **args) = 0;

protected:
    int SaveImage(cv::Mat &img, std::string &path);
    int SaveImage(cv::Mat &img, const char *path);

private:
    std::string basePath;
};


#endif //C_OPENCVDEMOBASE_H
